﻿using System;
using System.Text.RegularExpressions;

namespace DG.Common.Extensions
{
    public static class StringExtensions
    {
        public static String SplitCamelCase(this String s)
        {
            return Regex.Replace(s, @"(\B[A-Z]+?(?=[A-Z][^A-Z])|\B[A-Z]+?(?=[^A-Z]))", " $1");
        }
    }
}